﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// CommonClass 的摘要说明
/// </summary>
public class CommonClass
{
	public CommonClass()
	{
		//
		// TODO: 在此处添加构造函数逻辑
		//
	}
    public string MessageBox(string txtMessage)
    {
        string str;
        str = "<script language=javascript>alert('" + txtMessage + "')</script>";
        return str;
    }
    public string MessageBox(string txtMessage, string url)
    {
        string str;
        str = "<script language=javascript>alert('" + txtMessage + "';location='" + url + "';</script>";
        return str;
    }
    public string MessageBoxPage(string txtMessage)
    {
        string str;
        str = "<script language=javascript>alert('" + txtMessage + "';location='javascript:history.go(-1)';</script>";
        return str;
    }
}